package com.song.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.song.service.FeignService;
import feign.Feign;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author TonySong
 * @date 2024/5/9 0009
 * @time 16:14
 */
//@Component
@Service
public class MyFeign implements FeignService {
    @Override
    public String service1() {
        return "我是基于OpenFeign的熔断！";
    }

    public String handlerOne(BlockException e){
         return "sentinel的熔断！";
    }
}
